<%@ page contentType="text/html; charset=gb2312" language="java"%>
<%@ page language="java" import="java.util.*,control.database.*,java.sql.*"%>
<%
String OperatorNo="";
String OperatorName="";
String BranchNo=(String)session.getAttribute("BranchNo");
String SubCenterNo=(String)session.getAttribute("SubCenterNo");

	if(request.getParameter("OperatorNo")!=null){
		OperatorNo=request.getParameter("OperatorNo");
	}
	if(request.getParameter("OperatorName")!=null)
	{
	OperatorName=new String(request.getParameter("OperatorName").toString().getBytes("ISO8859_1"));
	}

String sql="insert into  dbo.CQ_Cmn_Operators(OperatorNo,StrOperID,OperatorName,BranchNo,SubCenterNo)values('"+OperatorNo+"','"+OperatorNo+"','"+OperatorName+"','"+BranchNo+"','"+SubCenterNo+"')";
	System.out.println("CQ_Cmn_Operators: "+sql);
	DataBase db2 = new DataBase();
	db2.executeUpdate(sql);
	db2.closeStmt();
	db2.closeConn();
response.sendRedirect("Operator_add_success.jsp?flag=add&OperatorNo="+OperatorNo);
%>